package net.zhengxinyun.performance.mapper.examNew;

import net.zhengxinyun.performance.dto.examDTO.ExamDTO;
import net.zhengxinyun.performance.entity.exam.GeneralPaperEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GeneralPaperEntityMapper {
    int deleteByPrimaryKey(Long id);
    int insert(GeneralPaperEntity record);
    int insertSelective(GeneralPaperEntity record);
    GeneralPaperEntity selectByPrimaryKey(Long id);
    int updateByPrimaryKeySelective(GeneralPaperEntity record);
    int updateByPrimaryKey(GeneralPaperEntity record);

    int batchSaves(List list);

    List<ExamDTO> selectGenersLists(Long questionId);

    List<ExamDTO> selectCacheList(@Param("questionnaireId") Long quesId, @Param("userId") Long userId, @Param("pyId") Long pyId);

}